package pe.gob.osce.sirenas.model.jpa;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="PAR_ADM_DISTRITO", schema="RNAS" )
@SequenceGenerator(name = "sqDistrito", sequenceName = "RNAS.SQDISTRITO", allocationSize=1)
public class Distrito implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5756213157045445554L;
	@Id 
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sqDistrito")	
	@Column(name="N_ID_DISTRITO")
	private Long idDistrito;	
	@Column(name="C_NOM_DISTRITO")
	private String nomDistrito;		
	@Column(name="N_ID_PROVINCIA")
	private Long idProvincia;
	@Column(name="N_ID_REGION")
	private Long idRegion;
	@Column(name="D_FEC_REGISTRO")
	private Date fecRegistro;
	

	public Long getIdDistrito() {
		return idDistrito;
	}
	public void setIdDistrito(Long idDistrito) {
		this.idDistrito = idDistrito;
	}
	public String getNomDistrito() {
		return nomDistrito;
	}
	public void setNomDistrito(String nomDistrito) {
		this.nomDistrito = nomDistrito;
	}
	public Long getIdProvincia() {
		return idProvincia;
	}
	public void setIdProvincia(Long idProvincia) {
		this.idProvincia = idProvincia;
	}	
	public Date getFecRegistro() {
		return fecRegistro;
	}
	public void setFecRegistro(Date fecRegistro) {
		this.fecRegistro = fecRegistro;
	}
	public Long getIdRegion() {
		return idRegion;
	}
	public void setIdRegion(Long idRegion) {
		this.idRegion = idRegion;
	}
	
	
	
}
